<?php

//引入类
require('./html2fpdf/html2fpdf.class.php');

//读入HTML
$html =  file_get_contents('./test.html');

//输出PDF
$pdf = new HTML2FPDF('l', 'mm', 'A4');
$pdf->startUp($html, 'utf-8', 'doc.pdf', 'D');
?>